package com.stockz.core.util;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class Config {

	private static Properties properties;
	
	public static String get(String key){
		if(properties == null){
			properties = new Properties();
			try {
				properties.load(new FileInputStream("src/stockz.properties"));
			} catch (FileNotFoundException e) {
				e.printStackTrace();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		return properties.getProperty(key);
	}
}
